<?php
$time = sprintf("%.5f", microtime(true));
session_start(); 

$cache = new Memcache;

$cache->addServer('192.168.1.143',11211);
$cache->connect('127.0.0.1',11211);

$data['lorem'] = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce a magna. Aliquam dui neque, sodales in, faucibus porttitor, ultricies quis, velit. Nam massa mi, dapibus non, mattis sit amet, egestas vel, nunc. Maecenas ligula pede, fringilla nec, dapibus sed, placerat eget, velit. Nam consectetuer turpis vel ligula. In laoreet porttitor ligula. Duis nec sem ac nisi lobortis tristique. Donec purus. Aliquam erat volutpat. Mauris rutrum lacus a odio. ";
$data['html'] = '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css">
<title>mIrcL: Mysql IRC Logger</title>
</head>
<body><div id="main">EFnetrizonyoufear#2023#72172y#alchnoc#bonghit#gentoo#la-2600#la2600#lasdj3wqe#perl#rathole#rizon#someonewhocares#testchannelSERVERskylahas quit (Ping timeout: 360 seconds) has quit (Read error: Operation timed out) has quit (Read error: Operation timed out) has quit (Read error: Connection reset by peer) has quit (Quit: Not all desperados eat tacos, pardner.) has quit (Quit: Leaving) has quit (Read error: Operation timed out) has quit (Client Quit) has quit (Read error: Operation timed out) has quit (Read error: Connection reset by peer) has quit (Ping timeout: no data for 485 seconds) has quit (Trying to find a ship to take me back to Mars...) has quit (Quit: Banana!) has quit (Read error: Connection reset by peer) has quit (Ping timeout: 556 seconds) has quit (I\'m outta heeeeere) has quit (Read error: Operation timed out) has quit (Read error: Operation timed out) has quit (Read error: Operation timed out) has quit (Reconnecting) has quit (Read error: Connection reset by peer) has quit (Ping timeout: 255 seconds) has quit (Ping timeout: 360 seconds) has quit (Quit: \'Puter go ni ni) has quit (Quit: What do you do when your worst nightmare comes true?) has quit (Read error: Operation timed out) has quit (Leaving) has quit (Read error: Connection reset by peer) has quit (Read error: Operation timed out) has quit (Quit: fucking siblings) has quit (Remote host closed the connection) has quit (Ping timeout: 255 seconds) has quit (Ping timeout: 490 seconds) has quit (Ping timeout: 360 seconds) has quit (Quit: Leaving) has quit () has quit (Client Quit) has quit (Read error: Operation timed out) has quit (Read error: Operation timed out) has quit (Ping timeout: 556 seconds) has quit (Ping timeout: 1748 seconds) has quit (Quit: - quit -) has quit (Leaving) has quit (goddamn floating whorehouse death is the navigator) has quit (Read error: Operation timed out) has quit (i just like Don Knotts) has quit (Read error: Operation timed out) has quit (Read error 54: Connection reset by peer) has quit (Read error: Operation timed out) </div></body>
</html>';

$cache->set('index',$data, MEMCACHE_COMPRESSED,5*50);
$qtime = sprintf("%.5f", microtime(true)-$time);
echo "Set in $qtime";
echo "Set [$data]\n";
echo "Now lets attempt to retrieve it..\n<br />\n";
$new_data = $cache->get('univ_key1');
echo "Get [$new_data]\n";

$qtime = sprintf("%.5f", microtime(true)-$time);
echo "Gen in $qtime";
?>
